from django.db import models

# Create your models here.
from lufflyapi.utils.base_model import BaseModel


class Banner(BaseModel):
    name = models.CharField(verbose_name='图片名', max_length=32)
    image = models.ImageField(verbose_name='轮播图', upload_to='banners', help_text='图片大小为：3840 * 800')
    link_url = models.CharField(max_length=255, verbose_name='轮播图的跳转链接')
    info = models.TextField(verbose_name='简介')

    class Meta:
        verbose_name_plural = '轮播图'
